<div class="row">
	<div class="col-lg-12">
		<ma-view-actions>
			<button class="btn btn-default ng-binding ng-scope" onclick="window.print()">
				<span class="glyphicon glyphicon-download" aria-hidden="true"></span>&nbsp;打印
			</button>
		</ma-view-actions>
		<div class="page-header">
			<h1>{{ controller.form.name}}</h1>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">报表基本信息</div>
			<div class="panel-body">
				<form role="form">
					<div class="form-group">
						<label>报表名称 : </label> {{ controller.form.name}}
					</div>
					<div class="form-group">
						<label>发起者 : </label> {{ controller.form.owner.name}}
					</div>
					<div class="form-group">
						<label>报表类型 : </label> {{ controller.form.type.name}}
					</div>
					<div class="form-group">
						<label>状态 : </label> {{ controller.form.state}}
					</div>
					<div class="form-group">
						<label>更新时间 : </label>{{ controller.form.updatedAt}}
					</div>
					<div class="form-group">
						<label>扩展信息</label>
						<table class="table table-striped table-bordered">
							<tbody>
								<tr ng-repeat="prop in controller.form.propvals">
									<td width="50%">{{prop.prop.name}}</td>
									<td>{{prop.value}}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</form>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">审批信息</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-12">
					<table class="table table-bordered">
						<tbody>
							<tr ng-repeat="opn in controller.form.opinions">
								<td width="50%">{{opn.superior.name}}</td>
								<td>{{opn.opinion}}</td>
							</tr>
						</tbody>
					</table>
					</div>
				</div>
			</div>
		</div>
		
		<div class="panel panel-default">
			<div class="panel-heading">报表图片</div>
			<div class="panel-body">
				<div class="row form-image-gallery">
					<div class="col-lg-4" ng-repeat="atta in controller.form.attachments track by $index">
						<a target="_blank" href="{{controller.baseUrl}}/files?filename={{atta.filename}}"><img ng-src="{{controller.baseUrl}}/files?filename={{atta.filename}}"></a>
					</div>
				</div>
			</div>
		</div>
		
		
	</div>
</div>